// 基于template/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IEditViewModel } from '@/core/interface/view/model';
function getModel(): IEditViewModel {
	return {
		caption: '认证集成配置',
		title: '认证集成配置',
		capPSLanguageRes: 'DE.LNAME.AUTH_PROVIDER',
		titlePSLanguageRes: 'PAGE.TITLE.AUTH_PROVIDER.EDITVIEW',
		showDataInfoBar: true,
		codeName: 'auth_providerEditView',
		uiEngineModel: [
			{
				name: 'toolbar_tbitem1_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem1',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'SaveAndExit',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem2_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem2',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Exit',
				entityCodeName: '',
			},
		],
		ctrls: [
			{
				name: 'form',
				codeName: 'Main',
				controlType: 'FORM',
			},
			{
				name: 'toolbar',
				codeName: 'EditViewtoolbar',
				controlType: 'TOOLBAR',
			},
		],
		ctrlParams: {
			AUTH_PROVIDERform: {},
			AUTH_PROVIDERtoolbar: {},
		},
		cssName: '',
		name: 'auth_providerEditView',
		viewType: 'DEEDITVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'AUTH_PROVIDER',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Name',
		funcViewMode: 'EDITVIEW',
		expandSearchForm: false,
		toolbarItems: [
			{
				actionLevel: '100',
				caption: '保存并关闭',
				captionLanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
				name: 'tbitem1',
				showCaption: true,
				tooltip: '保存并关闭',
				tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'sx-tb-saveandclose',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'SaveAndExit',
					uIActionMode: 'SYS',
					actionTarget: '',
					uIActionTag: 'SaveAndExit',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem1_click',
					actionTag: 'SaveAndExit',
					xDataCtrlName: 'form',
					predefinedType: 'EDITVIEW_SAVEANDEXITACTION',
				},
			},
			{
				actionLevel: '100',
				caption: '关闭',
				captionLanResTag: 'TBB.TEXT.EDITVIEW.CLOSE',
				name: 'tbitem2',
				showCaption: true,
				tooltip: '关闭',
				tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.CLOSE',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-sign-out',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'Exit',
					uIActionMode: 'SYS',
					actionTarget: '',
					uIActionTag: 'Exit',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem2_click',
					actionTag: 'Exit',
					xDataCtrlName: 'form',
					predefinedType: 'EDITVIEW_EXITACTION',
				},
			},
		],
		xDataCtrlName: 'form',
		quickSearchPlaceholder: ['应用名称'].join(','),
		useDefaultLayout: true,
	};
}
export const model = getModel();
